<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FACOPOLY:  Fichier source de /home/etu/g/p0804564/facopoly/src/main.c</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">FACOPOLY
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('main_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">main.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="main_8c.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &lt;malloc.h&gt;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include &quot;<a class="code" href="_s_d_l_8h.html">SDL.h</a>&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#include &quot;<a class="code" href="_p_l_a_t_e_a_u_8h.html" title="facopoly  Permet de créer le plateau de jeu">PLATEAU.h</a>&quot;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="_j_e_u_8h.html" title="facopoly  Permet de jouer au facopoly">JEU.h</a>&quot;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="main_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">00007</a> <span class="keywordtype">int</span> <a class="code" href="main_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()
<a name="l00008"></a>00008 {
<a name="l00009"></a>00009     <a class="code" href="struct_c_a_s_e.html" title="Module des cases du jeu.">TABCASE</a> ca;
<a name="l00010"></a>00010     <a class="code" href="struct_j_e_u.html">JEU</a> j;
<a name="l00011"></a>00011     <span class="comment">//JOUEUR jo;</span>
<a name="l00012"></a>00012     <a class="code" href="struct_p_l_a_t_e_a_u.html" title="Module du plateau de jeu.">PLATEAU</a> plateau;
<a name="l00013"></a>00013     SDL_Surface ecran;
<a name="l00014"></a>00014 
<a name="l00015"></a>00015     <span class="keywordtype">int</span> res = <a class="code" href="_s_d_l_8c.html#afd336a321cb28ea60f581fa235286f31" title="affiche_plateau procedure SDL qui permet l&#39;affichage du tableau avec l&#39;image de fond">affiche_plateau</a>(&amp;ecran, &amp;plateau);
<a name="l00016"></a>00016 
<a name="l00017"></a>00017     <span class="keywordflow">if</span>(res == 1)
<a name="l00018"></a>00018         printf(<span class="stringliteral">&quot;Erreur dans affiche fond ecran\n&quot;</span>);
<a name="l00019"></a>00019     ca = <a class="code" href="_c_a_s_e_8c.html#a02e94a8e7b4ce013d26b081933ca86f2" title="Initialisation d&#39;une case de jeu.">caInit_Case</a>();
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 
<a name="l00022"></a>00022     <a class="code" href="_j_e_u_8c.html#acfbdc4b01c93cd74c5a9e7b3d04c2d2a" title="Initialisation du jeu.">jeInit_Jeu</a> (&amp;j);
<a name="l00023"></a>00023     <span class="keywordtype">int</span> de = <a class="code" href="_j_e_u_8c.html#acd2a0effb98db738cadbfd8d11827228" title="permet de récupérer la valeur des dés">jeRecup_Des</a>(&amp;j);
<a name="l00024"></a>00024     printf(<span class="stringliteral">&quot;%d\n&quot;</span>, de);
<a name="l00025"></a>00025     <span class="comment">//joRentrer_Nom(&amp;jo);</span>
<a name="l00026"></a>00026     printf (<span class="stringliteral">&quot;%s&quot;</span>, ca[40].nom);
<a name="l00027"></a>00027 
<a name="l00028"></a>00028     <span class="keywordflow">return</span> 0;
<a name="l00029"></a>00029 }
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="main_8c.html">main.c</a>      </li>

    <li class="footer">Généré le Mardi Mai 14 2013 08:10:34 pour FACOPOLY par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
